# syntax=harbor.zhcxkj.com/public/dockerfile:1.3
FROM  harbor.zhcxkj.com/zhcxkj/zhcx-service-test-job-base:latest AS builder
RUN pip config --global set global.index-url https://mirrors.aliyun.com/pypi/simple/ && pip config --global set install.trusted-host mirrors.aliyun.com
#RUN sed -i -E 's/(deb|security).debian.org/mirrors.huaweicloud.com/g' /etc/apt/sources.list
RUN apt update && apt-get -y install unixodbc-dev gnupg2 
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
    curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
    apt-get update && \
    ACCEPT_EULA=Y apt-get install msodbcsql17 unixodbc unixodbc-dev -y
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
WORKDIR /app
COPY . .

CMD ["echo", "没有配置启动参数"]
